package com.test.mylotterysystem.comment.errorCode;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
public enum GlobalErrorCode implements ErrorCode {

    SUCCESS(200, "成功"),
    INTERNAL_SERVER_ERROR(500, "系统异常"),
    UNKNOWN(999, "未知错误"),
    PARAM_IS_ERROR(888,"参数有误"),
    ;
    private Integer code;
    private String errorMsg;

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getErrorMsg() {
        return errorMsg;
    }
}
